<div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="<?=site_url('admini')?>">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">日志管理</span></div>
        </div><!-- 
        <div class="search-wrap">
            <div class="search-content">
                <form action="#" method="post">
                    <table class="search-tab">
                        <tr>
                            <th width="120">选择分类:</th>
                            <td>
                                <select name="search-sort" id="">
                                    <option value="">全部</option>
                                    <option value="19">精品界面</option><option value="20">推荐界面</option>
                                </select>
                            </td>
                            <th width="70">关键字:</th>
                            <td><input class="common-text" placeholder="关键字" name="keywords" value="" id="" type="text"></td>
                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div> -->
        <div class="result-wrap">
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th>编号</th>
                            <th>用户名</th>
                            <th>操作地址</th>
                            <th>操作时间</th>
                            <th>操作IP</th>
                            <th>状态</th>
                            <th>sql语句</th>
                            <th>描述</th>
                        </tr>
                        <?php foreach($list as $k => $v): ?>
                        <tr>
                            <td><?=$v['Id']?></td>
                            <td><?=$v['user'] ?></td>
                            <td><?=$v['action']?></td>
                            <td><?=date('Y-m-d H:i:s',$v['create_time'])?></td>
                            <td><?=$v['ip']?></td>
                            
                            <?php if($v['state'] == '1'):?>
                            <td>成功</td>
                            <?php elseif($v['state'] == 2):?>
                            <td style="color:red">失败</td>
                            <?php else:?>
                            <td style="color:red"><?=$v['state'] ?></td>
                            <?php endif;?>

                            <td title="<?=$v['query']?>"><?=mb_substr($v['query'],0,30)?> ...</td>
                            <td><?=$v['describe']?></td>
                        </tr>
                        <?php endforeach; ?>
                    </table>
                    <div class="list-page"><?=$page?></div>
                </div>
        </div>


        <!--
    
        -->